﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class m_Terms_Of_Payment : DataObject
    {
        [Column]
        public string Terms_Of_Payment { get { return _Terms_Of_Payment; } set { _Terms_Of_Payment = value; EntityState.FieldChange("Terms_Of_Payment"); } }
        private string _Terms_Of_Payment;
        public static FieldInfo terms_of_payment = new FieldInfo("m_Terms_Of_Payment", "Terms_Of_Payment");

        [Column]
        public string Description { get { return _Description; } set { _Description = value; EntityState.FieldChange("Description"); } }
        private string _Description;
        public static FieldInfo description = new FieldInfo("m_Terms_Of_Payment", "Description");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("m_Terms_Of_Payment", "Time");

        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("m_Terms_Of_Payment", "Status");
    }
}
